import axios from "../utils/axios";

export function getTradingRankSatData(year) {
    return axios.get('/rank/sat/' + year)
}

export function getTradingRankGt5(date) {
    if (date) {
        return axios.get('/rank/gt5?date='+date)
    }
    return axios.get('/rank/gt5')
}

export function getTradingRankLt5() {
    return axios.get('/rank/lt5')
}

export function updateRank(stock) {
    return axios.get('/rank/update/'+stock)
}